import request from '@/utils/request.js'
// doctor开始
import request_local from '@/utils/request_local.js'

export function getdoctor(datas) {
  return request({
    url: 'doctor/doctor/get',
    method: 'post',
    data: datas
  })
}
export function adddoctor(datas) {
  return request({
    url: 'doctor/doctor/save',
    method: 'post',
    data: datas
  })
}
export function updatedoctor(datas) {
  return request({
    url: 'doctor/doctor/update',
    method: 'post',
    data: datas
  })
}

export function deletedoctor(datas) {
  return request({
    url: 'doctor/doctor/delete',
    method: 'post',
    data: datas
  })
}

export function deletetDoc(datas) {
  return request({
    url: 'doctor/doctor/delete',
    method: 'post',
    data: datas
  })
}

export function doctornum(datas) {
  return request({
    url: 'doctor/doctor/num',
    method: 'post',
    data: datas
  })
}
// doctor结束

// doctype
export function deletedoctype(datas) {
  return request({
    url: 'doctor/doctype/delete',
    method: 'post',
    data: datas
  })
}


// type开始
export function doctortype(datas) {
  return request({
    url: 'doctor/type/get',
    method: 'post',
    data: datas
  })
}
export function deletetype(datas) {
  return request({
    url: 'doctor/type/delete',
    method: 'post',
    data: datas
  })
}
export function addtype(datas) {
  return request({
    url: 'doctor/type/save',
    method: 'post',
    data: datas
  })
}
export function updatetype(datas) {
  return request({
    url: 'doctor/type/update',
    method: 'post',
    data: datas
  })
}

// user开始

// 核查唯一的tel
export function saveuser(datas) {
  return request({
    url: 'user/user/userRegLogin',
    method: 'post',
    data: datas
  })
}
//保存的宠物用户
export function saveusers(datas) {
  return request({
    url: 'user/user/save',
    method: 'post',
    data: datas
  })
}
//更新用户
export function updateuser(datas) {
  return request({
    url: 'user/user/update',
    method: 'post',
    data: datas
  })
}

export function getuser(datas) {
  return request({
    url: 'user/user/get',
    method: 'post',
    data: datas
  })
}


export function usernum(datas) {
  return request({
    url: 'user/user/num',
    method: 'post',
    data: datas
  })
}
export function getUnit(datas) {
  return request({
    url: 'user/unit/get',
    method: 'post',
    data: datas
  })
}
// user结束

// admin开始

export function login(datas) {
  return request({
    url: 'server/organization/get',
    method: 'post',
    data: datas
  })
}
//获取token
export function getToken(datas) {
  return request({
    url: 'index/index/getToken',
    method: 'post',
    data: datas
  })
}
//获取模版列表
export function gettemplate(datas) {
  return request({
    url: 'index/index/gettemplate',
    method: 'post',
    data: datas
  })
}

//下发消息模版
export function pushMessage(datas) {
  return request({
    url: 'index/index/pushlc2',
    method: 'post',
    data: datas
  })
}

//保存消息
export function saveMessage(datas) {
  return request({
    url: 'index/Msgsystem/save',
    method: 'post',
    data: datas
  })
}

//获取消息通知
export function getMessages(datas) {
  return request({
    url: 'index/Msgsystem/get',
    method: 'post',
    data: datas
  })
}

//获取一个消息
export function getOnePage(datas) {
  return request({
    url: 'index/Msgsystem/get',
    method: 'post',
    data: datas
  })
}

//获取一个消息
export function deleteMessage(datas) {
  return request({
    url: 'index/Msgsystem/delete',
    method: 'post',
    data: datas
  })
}

//浏览数据增加1


export function scanNum(datas) {
  return request({
    url: 'index/Msgsystem/scanNum',
    method: 'post',
    data: datas
  })
}


export function beginInput(datas) {
  return request_local({
    url: 'eptrobot/task',
    method: 'post',
    data: datas
  })
}

//deletedata

export function deletedata(datas) {
  return request_local({
    url: '/health',
    method: 'delete',
    data: datas
  })
}
